class Serverlet {
  constructor (req, res) {
    this.smart(req, res)
  }

  smart (req, res) {
    var method = req.method.toUpperCase()
    method === 'GET' ? this.get(req, res) : ''
    method === 'POST' ? this.post(req, res) : ''
  }

  // get请求
  get (req, res) {

  }

  // post请求
  post (req, res) {

  }
}

module.exports = {
  Serverlet,
}
